﻿<Window x:Class="CodeBuilder2.LoginWnd"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="连接到服务器" ResizeMode="NoResize" Height="296" WindowStartupLocation="CenterOwner" SizeToContent="WidthAndHeight" >
    <Grid ShowGridLines="False">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <!--第0行-->
        <Image Grid.ColumnSpan="2" Name="imgLoginBanner" Stretch="None"  Source="/CodeBuilder2;component/Resources/loginbanner.jpg" HorizontalAlignment="Stretch"/>
        <!--第1行-->
        <TextBlock Text="服务器名称：" Grid.Row="1" Margin="50,5,0,5" Width="96" HorizontalAlignment="Left" />
        <ComboBox Name="cbxServerName" Grid.Column="1" Grid.Row="1" Margin="5,5,50,5" IsEditable="True" Text="." />
        <Button Content="..." Grid.Column="1" Grid.Row="1" HorizontalAlignment="Left" Margin="230,5,5,5" Name="btnSearch" Click="btnSearch_Click" />
        <!--第2行-->
        <TextBlock Text="登录名：" Grid.Row="2" Margin="74,5,0,5" HorizontalAlignment="Left" Width="48" />
        <ComboBox Name="cbxLoginName" Grid.Column="1" Grid.Row="2" Margin="29,5,50,5" IsEditable="True" Text="sa"/>
        <!--第3行-->
        <TextBlock Text="密码：" Grid.Row="3" Margin="74,5,0,5" HorizontalAlignment="Left" Width="36" />
        <PasswordBox Name="pbxPassword" Grid.Column="1" Password="0" Grid.Row="3" Margin="29,5,50,5" HorizontalAlignment="Stretch" />
        <!--第4行-->
        <CheckBox Name="chk" Grid.Column="1" Grid.Row="4" Margin="29,5,0,20" HorizontalAlignment="Left">记住密码</CheckBox>
        <!--第5行-->
        <Canvas Grid.ColumnSpan="2" Grid.Row="5" Background="#FF555555" Height="1" Margin="20,0"/>
        <!--第6行-->
        <StackPanel Grid.Row="6" Orientation="Horizontal" Grid.ColumnSpan="2" HorizontalAlignment="Center" Height="45">
            <Button Margin="90,10,20,10" Width="80" Click="Button_Click" IsDefault="True">连接</Button>
            <Button Margin="20,10,90,10" Width="80">取消</Button>
        </StackPanel>
    </Grid>
</Window>
